package org.springblade.modules.ehb.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.ehb.mapper.EhbPolicyDrawMapper;
import org.springblade.modules.ehb.service.IEhbPolicyDrawService;
import org.springblade.modules.ehb.vo.EhbPolicyDrawVO;
import org.springblade.modules.policy.entity.PolicyDraw;
import org.springframework.stereotype.Service;

@Service
public class EhbPolicyDrawServiceImpl extends BaseServiceImpl<EhbPolicyDrawMapper, PolicyDraw> implements IEhbPolicyDrawService {

	@Override
	public EhbPolicyDrawVO getById(Long id) {
		return baseMapper.getById(id);
	}

	@Override
	public IPage<EhbPolicyDrawVO> selectPolicyDrawPage(IPage<EhbPolicyDrawVO> page, Integer status, Integer isDeclareMatter, String enterpriseNature, String suitLevel, String enterpriseScale, String enterpriseSpecial, Character industryType, String name) {
		return page.setRecords(baseMapper.selectPolicyDrawPage(status, isDeclareMatter, enterpriseNature, suitLevel, enterpriseScale, enterpriseSpecial, industryType, name, page));
	}

	@Override
	public Integer countPolicyDraw() {
		return baseMapper.countPolicyDraw();
	}
}
